package com.cloudlinkin.entity;

import com.alibaba.fastjson.JSON;

/*
 * 省份队列DTO
 */
public class QueueProvinceModel {

	public int seqid;// 临时的seqid变量 不做get 和set  不做传输使用  本地滑动队列用

	private String refId; //分组ID
	
	public int recount=0;  //错误计数  
	
	// 短信ID
	private String reqId;

	
	// 名称根据优先级动态生成队列 入 每一个省份 三个等级 那么名称为 queueName + priority;
	private String queueName;

	// 优先级1,2,3
	private int priority;

	// 扩展码
	private String exCode;

	// 手机
	private String mobile;

	private byte[] content;

	// 总条数
	private int total;

	// 第几条
	private int num;

	// 接口队列名称
	private String apiQueueName;

	private int udhi;

	private int fmt;

	// 网关代码
	private String gwId;

	private String mttime;

	private int rpttype;

	// 转json 字符串 为null 的字段 不存在
	public String toJson() {
		return JSON.toJSONString(this);
	}



	public String getRefId() {
		return refId;
	}
	public void setRefId(String refId) {
		this.refId = refId;
	}
	public String getReqId() {
		return reqId;
	}
	public void setReqId(String reqId) {
		this.reqId = reqId;
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

	public String getMttime() {
		return mttime;
	}

	public void setMttime(String mttime) {
		this.mttime = mttime;
	}

	public int getRpttype() {
		return rpttype;
	}

	public void setRpttype(int rpttype) {
		this.rpttype = rpttype;
	}

	public String getQueueName() {
		return queueName;
	}

	public void setQueueName(String queueName) {
		this.queueName = queueName;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public String getExCode() {
		return exCode;
	}

	public void setExCode(String exCode) {
		this.exCode = exCode;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String getApiQueueName() {
		return apiQueueName;
	}

	public void setApiQueueName(String apiQueueName) {
		this.apiQueueName = apiQueueName;
	}

	public int getUdhi() {
		return udhi;
	}

	public void setUdhi(int udhi) {
		this.udhi = udhi;
	}

	public int getFmt() {
		return fmt;
	}

	public void setFmt(int fmt) {
		this.fmt = fmt;
	}

	public String getGwId() {
		return this.gwId;
	}

	public void setGwId(String gwId) {
		this.gwId = gwId;
	}
}
